package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func LogRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.LogApi
	r.GET("logs", middleware.MiddlewareAuth(), app.LogListView)
	r.GET("logs/:id", middleware.MiddlewareAuth(), app.LogReadView)
	r.DELETE("logs", middleware.MiddlewareAuth(), app.LogRemoveView)

}
